import request from '@/utils/request'

// 查询无人机信息列表
export function listDrone_info(query) {
    return request({
        url: '/equipment/drone_info/list',
        method: 'get',
        params: query
    })
}

// 查询无人机信息详细
export function getDrone_info(id) {
    return request({
        url: '/equipment/drone_info/' + id,
        method: 'get'
    })
}

// 新增无人机信息
export function addDrone_info(data) {
    return request({
        url: '/equipment/drone_info',
        method: 'post',
        data: data
    })
}

// 修改无人机信息
export function updateDrone_info(data) {
    return request({
        url: '/equipment/drone_info',
        method: 'put',
        data: data
    })
}

// 删除无人机信息
export function delDrone_info(id) {
    return request({
        url: '/equipment/drone_info/' + id,
        method: 'delete'
    })
}

// 查询所有未绑定的机场名称
export function listAllNoBind() {
    return request({
      url: '/equipment/dock/allNoBind',
      method: 'get'
    })
  }
